package com.ruoyi.product.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class WorkPlan extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Long id;
    private Long creatorId;
    private String siteNum;
    private Long updaterId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date actualIssuedTime;
    private Long areaId;
    private String areaName;
    private String cellCode;
    @NotNull(message = "产线id不能为空")
    @Min(value = 1,message = "产线id不得小于1")
    private Long cellId;
    private String cellName;
    private String eigenvalue;
    private BigDecimal finishedQuantity;
    private BigDecimal issuedQuantity;
    private String materialCode;
    private Long materialId;
    private String materialName;
    @NotNull(message = "计划编码不能为空")
    private String planCode;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date planEndTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date planStartTime;
    private Integer planStatus;
    private Float progress;
    @NotNull(message = "数量不能为空")
    @Min(value = 1,message = "数量最小为1")
    private BigDecimal quantity;
    private Long routeId;
    private String routeName;
    private Integer serialNum;
    private String debugIdentification;
    private Integer planType;
    private Integer isUpload;
    private String delFlag;


}
